package com.gaoshu.service.serviceimpl;

import com.gaoshu.bean.DoctorDuibi;
import com.gaoshu.bean.Finance;
import com.gaoshu.mapper.TongJiMapper;
import com.gaoshu.service.TongJiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class TongJiServiceImpl implements TongJiService{
    @Autowired
    private TongJiMapper tongjimapper;
    /**
     * 门诊月度统计
     */
    @Override
    public List<Double> SelectReportAndCaishier(String year) {
        return tongjimapper.SelectReportAndCaishier(year);
    }
    /**
     * 住院月度统计
     */
    @Override
    public List<Double> SelectRegister(String year) {
        return tongjimapper.SelectRegister(year);
    }
    /**
     * 门诊年度统计
     */
    @Override
    public List<Finance> SelectReportAndFinanace() {
        return tongjimapper.SelectReportAndFinanace();
    }
    /**
     * 住院年度统计
     */
    @Override
    public List<Finance> SelectRegisterFinance() {
        return tongjimapper.SelectRegisterFinance();
    }
    /**
     * 门诊医生统计对比
     */
    @Override
    public List<DoctorDuibi> SelectMDoctor(DoctorDuibi doctorDuibi) {
        return tongjimapper.SelectMDoctor(doctorDuibi);
    }
    /**
     * 住院医生统计对比
     */
    @Override
    public List<DoctorDuibi> SelectZDoctor(DoctorDuibi doctorDuibi) {
        return tongjimapper.SelectZDoctor(doctorDuibi);
    }
    /**
     * 门诊当天统计
     */
    @Override
    public List<Finance> SelectCaishier(String current) {
        return tongjimapper.SelectCaishier(current);
    }

}
